<template>
  <div>
    <ul>
      <li v-for="item in data" :key="item">
        <img src="../../images/list/img_v2_2d9a6fd6-f042-4e71-a201-ce031607845g 1.png" alt="" />
        <div class="content">
          <p><span v-if="item.monopoly == 1">转卖</span>{{ item.name }}</p>
          <span>{{ item.time }}小时内发布</span>
          <p class="price">{{ item.price }}</p>
          <div class="user">
            <img src="../../images/userList/Ellipse 1.png" alt="" />
            <span>{{ item.userId }}</span>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  data() {
    return {
      data: [
        {
          img: "../../images/list/img_v2_09c073d3-e2ca-448c-99a6-b54cb720e0dg 1.png",
          name: "古源修复滋养蜂蜜面膜30",
          time: 14,
          price: 80,
          userImg: "../../images/userList/Ellipse 1.png",
          userId: "98块钱的ID",
          monopoly: 0,
        },
        {
          img: "../../images/list/img_v2_2d9a6fd6-f042-4e71-a201-ce031607845g 1.png",
          name: "古源修复滋养蜂蜜面膜30",
          time: 14,
          price: 80,
          userImg: "../../images/userList/Ellipse 2.png",
          userId: "98块钱的ID",
          monopoly: 1,
        },
        {
          img: "../../images/list/img_v2_52e235c4-c57c-4c3f-ae20-e64b99df5f9g 1.png",
          name: "古源修复滋养蜂蜜面膜30",
          time: 14,
          price: 80,
          userImg: "../../images/userList/Ellipse 3.png",
          userId: "98块钱的ID",
          monopoly: 0,
        },
        {
          img: "../../images/list/img_v2_e6196887-4793-4c98-a92a-5bad91c2aabg 1.png",
          name: "古源修复滋养蜂蜜面膜30",
          time: 14,
          price: 80,
          userImg: "../../images/userList/Ellipse 4.png",
          userId: "98块钱的ID",
          monopoly: 1,
        },
        {
          img: "../../images/list/图层 11.png",
          name: "古源修复滋养蜂蜜面膜30",
          time: 14,
          price: 80,
          userImg: "../../images/userList/Ellipse 6.png",
          userId: "98块钱的ID",
          monopoly: 0,
        },
      ],
    };
  },
};
</script>
<style lang="scss" scoped>
ul {
  margin-top: 47px;
  box-sizing: border-box;
  padding: 0 40px;
  column-count: 2;
  column-gap: 30px;

  li {
    box-shadow: 8px 8px 8px rgba(102, 102, 102, 0.08);
    border-radius: 10px;
    margin-bottom: 50px;
    break-inside: avoid;
    width: 320px;
    & > img {
      width: 320px;
      border-radius: 10px;
    }
    .content {
      padding: 18px 21px 10px;
      box-sizing: border-box;
      p {
        color: rgba(51, 51, 51, 1);
        font-size: 24px;
        // width: 320px;
        font-weight: 500;
        margin-bottom: 5px;
        span {
          display: inline-block;
          background-color: rgba(255, 159, 10, 1);
          width: 70px;
          height: 26px;
          font-size: 20px;
          border-radius: 5px;
          font-weight: 500;
          color: #333333;
          line-height: 30px;
          text-align: center;
        }
      }
      & > span {
        color: rgba(102, 102, 102, 1);
        font-size: 20px;
      }
      .price {
        font-size: 40px;
        color: rgba(51, 51, 51, 1);
        font-weight: bold;
        height: 49px;
      }
      .user {
        img {
          height: 40px;
          width: 40px;
          vertical-align: middle;
        }
        span {
          display: inline-block;
          margin-left: 30px;
          font-size: 20px;
          color: rgba(102, 102, 102, 1);
          line-height: 40px;
          vertical-align: middle;
        }
      }
    }
  }
}
</style>
